<?php $form=$this->beginWidget('CActiveForm', array(
        'id'=>'item-form',
        'enableAjaxValidation'=>false,
        'htmlOptions'=>array(
            'class' => 'da-form'
        ),
    )); ?>

<?php echo $form->errorSummary($model, NULL, NULL, array('class' => 'alert alert-error')); ?>


<table class="da-table">
    <thead>
        <tr>
            <th><?php echo $form->labelEx($model,'name', array('style' => 'font-weight: bold')); ?></th>
            <th><?php echo $form->labelEx($model,'iron', array('style' => 'font-weight: bold')); ?></th>
            <th><?php echo $form->labelEx($model,'laundry_dry', array('style' => 'font-weight: bold')); ?></th>
            <th><?php echo $form->labelEx($model,'group', array('style' => 'font-weight: bold')); ?></th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td style="width: 400px;">
                <?php echo $form->textField($model,'name',array('placeholder' => 'Tên tiếng việt')); ?>
                <br/>
                <?php echo $form->textField($model,'name_en',array('placeholder' => 'Tên tiếng anh')); ?>
            </td>     
            <td style="width: 150px;"><?php echo $form->dropDownList($model, 'iron', $model->priceData);?></td>
            <td style="width: 150px;"><?php echo $form->dropDownList($model, 'laundry_dry', $model->priceData);?></td>
            <td style="width: 250px;">
                <?php echo $form->dropDownList($model, 'unit', $model->unitData, array('style' => 'width: 100px'));?>
                <?php echo $form->dropDownList($model, 'group', $model->groupData, array('style' => 'width: 100px'));?>
            </td>
        </tr>
        <tr><td colspan="6"><button class="da-button" type="submit"><?php echo $model->isNewRecord ? 'Create' : 'Save'?></button></td></tr>
    </tbody>
      </table>
<?php $this->endWidget(); ?>

